The animation can pass x/y through to the render_icon() function, so
don't gtk_snapshot_translate() it.
x += (width - w) / 2;
- gtk_snapshot_translate_2d (snapshot, x, y);
if (gtk_image_get_storage_type (image) == GTK_IMAGE_ANIMATION)
{
GtkStyleContext *context = gtk_widget_get_style_context (widget);
}
else
{
+ gtk_snapshot_translate_2d (snapshot, x, y);
gtk_icon_helper_snapshot (priv->icon_helper, snapshot);
+ gtk_snapshot_translate_2d (snapshot, -x, -y);
}
- gtk_snapshot_translate_2d (snapshot, -x, -y);
return FALSE;
}